package com.service.impl;

import com.dao.ArticalCommentDao;
import com.entity.ArticalComment;
import com.service.ArticalCommenServie;
import com.util.sql.PageModel;

public class ArticalCommentServiceImpl implements ArticalCommenServie {
    private ArticalCommentDao dao = new ArticalCommentDao();
    @Override
    public ArticalComment sendComment(ArticalComment ar) {
        return dao.save(ar);
    }

    @Override
    public int updateComment(ArticalComment ar) {
        return dao.update(ar,ar);
    }

    @Override
    public int deleteComment(ArticalComment ar) {
        return dao.del(ar);
    }

    @Override
    public ArticalComment queryComment(ArticalComment ar) {
        return dao.get(ar);
    }

    @Override
    public PageModel queryPage(int page, int size, ArticalComment ar) {
        return dao.queryModel(page,size,ar);
    }
}
